package cn.tedu.weibo.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
public class UserRegDTO {
    // 用户名 | 密码 | 昵称
//    @NotNull(message = "用户名不能为空值null")
//    @NotEmpty(message = "用户名不能为空字符串,也不能为bull")
    @NotBlank(message = "用户名不能为空字符串,也不能为bull,不允许为空白")
//    @Size(min = 6,max = 10 ,message = "用户名必须在6-10位之间")
    @ApiModelProperty(value = "用户名",required = true,example = "Lucy")
    private String username;

    @ApiModelProperty(value = "昵称",required = true,example = "Lucy")
    private String nickname;
    @ApiModelProperty(value = "密码",required = true,example = "Lucy")
    private String password;

}